import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
	// mode:'history',
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'main',
      component: resolve => require(['@/components/MainVue'],resolve),
      children : [
        {
          path: '/production_load_material',
          name: 'production_load_material',
          component: resolve => require(['@/components/production_load_material'],resolve),
          meta: {
              title: '上料调度控制台',
          }
        },
        {
          path: '/production_load_material_workbench',
          name: 'production_load_material_workbench',
          component: resolve => require(['@/components/production_load_material_workbench'],resolve),
          meta: {
              title: '上料调度执行台',
          }
        }
      ]
    },
    {
      path: '/login',
      name: 'Login',
      component: resolve => require(['@/components/login'],resolve),
    },

  ]
})
